import { Component } from '../Component'

export { default as createTaskQueue } from './createTaskQuene'
export { default as arrified } from './Arrified'
export { default as createStateNode } from './CreateStateNode'
export { default as getRoot } from './getRoot'

export const getTag = vdom => {
  if (typeof vdom.type === "string") {
    return "host_component"
  } else if (Object.getPrototypeOf(vdom.type) === Component) {
    return "class_component"
  } else {
    return "function_component"
  }
}